package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_CostType实体类
 * 
 * @author 
 *
 */
public class SyCosttype {
	/***/
	private Object id; 
	/***/
	private Integer Kind; 
	/***/
	private String Code; 
	/***/
	private String CostTypeName; 
	/***/
	private String FullName; 
	/***/
	private Double price; 
	/***/
	private String SurchargeText; 
	/***/
	private String Remark; 
	/***/
	private Integer Diskabled; 
	/**
	 * 实例化
	 */
	public SyCosttype() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyCosttype(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("Kind") instanceof Number) {
			this.setKind(((Number) obj.get("Kind")).intValue());
		}
		if (obj.get("Code") instanceof String) {
			this.setCode((String) obj.get("Code"));
		}
		if (obj.get("CostTypeName") instanceof String) {
			this.setCostTypeName((String) obj.get("CostTypeName"));
		}
		if (obj.get("FullName") instanceof String) {
			this.setFullName((String) obj.get("FullName"));
		}
		if (obj.get("price") instanceof Number) {
			this.setPrice(((Number) obj.get("price")).doubleValue());
		}
		if (obj.get("SurchargeText") instanceof String) {
			this.setSurchargeText((String) obj.get("SurchargeText"));
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
		if (obj.get("Diskabled") instanceof Number) {
			this.setDiskabled(((Number) obj.get("Diskabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getKind() != null) {
			result.put("Kind",this.getKind());
		}
		if (this.getCode() != null) {
			result.put("Code",this.getCode());
		}
		if (this.getCostTypeName() != null) {
			result.put("CostTypeName",this.getCostTypeName());
		}
		if (this.getFullName() != null) {
			result.put("FullName",this.getFullName());
		}
		if (this.getPrice() != null) {
			result.put("price",this.getPrice());
		}
		if (this.getSurchargeText() != null) {
			result.put("SurchargeText",this.getSurchargeText());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		if (this.getDiskabled() != null) {
			result.put("Diskabled",this.getDiskabled());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取Kind
	 * 
	 * @return
	 */
	public Integer getKind() {
		return Kind;
	}

	/**
	 * 设置Kind
	 * 
	 * @param Kind
	 */
	public void setKind(Integer Kind) {
		this.Kind = Kind;
	}
	
	/**
	 * 获取Code
	 * 
	 * @return
	 */
	public String getCode() {
		return Code;
	}

	/**
	 * 设置Code
	 * 
	 * @param Code
	 */
	public void setCode(String Code) {
		this.Code = Code;
	}
	
	/**
	 * 获取CostTypeName
	 * 
	 * @return
	 */
	public String getCostTypeName() {
		return CostTypeName;
	}

	/**
	 * 设置CostTypeName
	 * 
	 * @param CostTypeName
	 */
	public void setCostTypeName(String CostTypeName) {
		this.CostTypeName = CostTypeName;
	}
	
	/**
	 * 获取FullName
	 * 
	 * @return
	 */
	public String getFullName() {
		return FullName;
	}

	/**
	 * 设置FullName
	 * 
	 * @param FullName
	 */
	public void setFullName(String FullName) {
		this.FullName = FullName;
	}
	
	/**
	 * 获取price
	 * 
	 * @return
	 */
	public Double getPrice() {
		return price;
	}

	/**
	 * 设置price
	 * 
	 * @param price
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	
	/**
	 * 获取SurchargeText
	 * 
	 * @return
	 */
	public String getSurchargeText() {
		return SurchargeText;
	}

	/**
	 * 设置SurchargeText
	 * 
	 * @param SurchargeText
	 */
	public void setSurchargeText(String SurchargeText) {
		this.SurchargeText = SurchargeText;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}
	
	/**
	 * 获取Diskabled
	 * 
	 * @return
	 */
	public Integer getDiskabled() {
		return Diskabled;
	}

	/**
	 * 设置Diskabled
	 * 
	 * @param Diskabled
	 */
	public void setDiskabled(Integer Diskabled) {
		this.Diskabled = Diskabled;
	}

	@Override
	public String toString() {
		return "SyCosttype [id=" + id + " , Kind=" + Kind + " , Code=" + Code + " , CostTypeName=" + CostTypeName + " , FullName=" + FullName + " , price=" + price + " , SurchargeText=" + SurchargeText + " , Remark=" + Remark + " , Diskabled=" + Diskabled + "  ]";
	
	}
	
	
}
